<template>
  <div>
    <h1>increment</h1>
    <el-button type='success' size='mini' @click='increment'>+</el-button>
  </div>
</template>

<script>
export default {
  name: 'increment',
  data() {
    return {
      num: 1,
      deg: 100
    }
  },
  methods: {
    increment() {
      this.$EventBus.$emit('incremented', {
        num: this.num,
        deg: this.deg
      })
    }
  }
}
</script>

<style scoped>

</style>
